////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 1995-2008 Xilinx, Inc.  All rights reserved.
////////////////////////////////////////////////////////////////////////////////
//   ____  ____ 
//  /   /\/   / 
// /___/  \  /    Vendor: Xilinx 
// \   \   \/     Version : 10.1
//  \   \         Application : sch2verilog
//  /   /         Filename : VGA_sch.vf
// /___/   /\     Timestamp : 12/10/2008 19:20:55
// \   \  /  \ 
//  \___\/\___\ 
//
//Command: C:\Xilinx\10.1\ISE\bin\nt\unwrapped\sch2verilog.exe -intstyle ise -family spartan3e -w "C:/Documents and Settings/William Lee/My Documents/VGATEST/VGA_sch.sch" VGA_sch.vf
//Design Name: VGA_sch
//Device: spartan3e
//Purpose:
//    This verilog netlist is translated from an ECS schematic.It can be 
//    synthesized and simulated, but it should not be modified. 
//
`timescale 1ns / 1ps

module VGA_sch(clock, 
               reset, 
               wEn, 
               writeData, 
               hSyncOut, 
               VGAout, 
               vSyncOut);

    input clock;
    input reset;
    input wEn;
    input [15:0] writeData;
   output hSyncOut;
   output [5:0] VGAout;
   output vSyncOut;
   
   wire [15:0] XLXN_218;
   wire [15:0] XLXN_219;
   wire XLXN_220;
   wire [7:0] XLXN_222;
   wire [3:0] XLXN_223;
   wire [15:0] XLXN_224;
   wire [7:0] XLXN_225;
   wire XLXN_226;
   wire XLXN_227;
   wire XLXN_228;
   wire XLXN_229;
   wire XLXN_230;
   wire XLXN_231;
   wire [4:0] XLXN_233;
   wire [4:0] XLXN_235;
   wire [15:0] XLXN_236;
   wire [15:0] XLXN_237;
   wire [15:0] XLXN_238;
   wire [15:0] XLXN_241;
   wire [14:0] XLXN_242;
   
   TESTRAM2 XLXI_21 (.address(XLXN_242[14:0]), 
                     .clock(clock), 
                     .en(XLXN_227), 
                     .wEn(wEn), 
                     .writeData(writeData[15:0]), 
                     .memData(XLXN_236[15:0]));
   backTilePixel XLXI_22 (.clock(clock), 
                          .en(XLXN_229), 
                          .memoryPixel(XLXN_236[15:0]), 
                          .reset(reset), 
                          .pixelData(XLXN_218[15:0]));
   frameBuffer XLXI_23 (.clock(clock), 
                        .hPixelCount(XLXN_222[7:0]), 
                        .memoryData(XLXN_224[15:0]), 
                        .pixelIndex(XLXN_225[7:0]), 
                        .readEnable(), 
                        .writeEnable(XLXN_226), 
                        .pixelData(XLXN_241[15:0]));
   frontTilePixel XLXI_24 (.clock(clock), 
                           .en(XLXN_228), 
                           .memoryPixel(XLXN_236[15:0]), 
                           .reset(reset), 
                           .pixelData(XLXN_219[15:0]));
   TileIndex XLXI_25 (.clock(clock), 
                      .en(XLXN_231), 
                      .Index(XLXN_233[4:0]), 
                      .indexData(XLXN_236[15:0]), 
                      .readTileIndex(XLXN_235[4:0]), 
                      .tileIndexOut(XLXN_237[15:0]));
   TileIndex XLXI_26 (.clock(clock), 
                      .en(XLXN_230), 
                      .Index(XLXN_233[4:0]), 
                      .indexData(XLXN_236[15:0]), 
                      .readTileIndex(XLXN_235[4:0]), 
                      .tileIndexOut(XLXN_238[15:0]));
   VGAController XLXI_27 (.clock(clock), 
                          .memory(XLXN_241[15:0]), 
                          .reset(reset), 
                          .currentVerticalPixelCount(XLXN_223[3:0]), 
                          .hPixelCount(XLXN_222[7:0]), 
                          .hSyncOut(hSyncOut), 
                          .read(), 
                          .startToRead(XLXN_220), 
                          .VGAout(VGAout[5:0]), 
                          .vSyncOut(vSyncOut));
   VGARead XLXI_28 (.backPixelData(XLXN_218[15:0]), 
                    .backTileIndex(XLXN_238[15:0]), 
                    .clock(clock), 
                    .currentVerticalPixelCount(XLXN_223[3:0]), 
                    .frontPixelData(XLXN_219[15:0]), 
                    .frontTileIndex(XLXN_237[15:0]), 
                    .reset(reset), 
                    .startToRead(XLXN_220), 
                    .address(XLXN_242[14:0]), 
                    .backPixelDataEnable(XLXN_229), 
                    .en(XLXN_227), 
                    .frontPixelDataEnable(XLXN_228), 
                    .hPixelCount(XLXN_225[7:0]), 
                    .pixelData(XLXN_224[15:0]), 
                    .readTileIndex(XLXN_235[4:0]), 
                    .tileIndex(XLXN_233[4:0]), 
                    .writeBackTileEnable(XLXN_230), 
                    .writeFrontTileEnable(XLXN_231), 
                    .writePixelDataEnable(XLXN_226));
endmodule
